<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>vue初始化过程调试+vue初次渲染</title>
        <script src="../../dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            {{msg}}

            <ul>
                <li v-for="i in list">{{i}}</li>
            </ul>
        </div>

        <script>
            const vue = new Vue({
                el: '#app',
                data: {
                    msg: '消息',
                    list: [1, 2, 3, 4, 5]
                }
            });

            vue.msg = 'ddd';
            // vue.list = 'h,e,l,l,o'.split(',');
            // vue.list = ['a', 'v', 'd'];
            // vue.list[0] = 22222;
            // vue.list.length = 0;
            vue.list.push('6');
        </script>
    </body>
</html>
